package com.suncaper.han_yi_system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.suncaper.han_yi_system.pojo.dto.ClothingStyleQueryDto;
import com.suncaper.han_yi_system.pojo.entity.ClothingStyle;
import com.suncaper.han_yi_system.pojo.vo.ClothingStyleVo;
import com.suncaper.han_yi_system.pojo.vo.StyleStatsVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ClothingStyleMapper extends BaseMapper<ClothingStyle> {

    Page<ClothingStyleVo> pageList(@Param("page") Page<ClothingStyleVo> page, @Param("dto") ClothingStyleQueryDto clothingStyleDto);

    List<StyleStatsVo> findByBatchIds(@Param("ids") List<Long> ids, @Param("academicYear") Integer academicYear);

    List<ClothingStyle> findListByBatchId(@Param("batchId") Long batchId);
}
